package com.product.service;

import com.common.VO.SysResult;
import com.common.domain.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Elias
 * @version 1.0
 * @date 2021-05-12 9:57
 * @description
 * @copyright 2021
 */
@FeignClient(name = "search")
public interface SearchService {
    /**
     * 新增商品
     * @param product 商品
     * @return vo
     */
    @RequestMapping("/manage/add")
    @ResponseBody
    SysResult addProduct(@RequestBody Product product);
    /**
     * 删除商品
     * @param product 商品
     * @return vo
     */
    @RequestMapping("/manage/delete")
    @ResponseBody
    SysResult deleteProduct(@RequestBody Product product);
}
